<?php
/*
 * revokeAssignList File
 *
 * @link http://riedel-st.de
 * @author Stefan Riedel <sr@riedel-st.de>
 */
?>
<div id="<?=$tab?>">
<?= CHtml::activeDropDownList($itemModel, 'name[revoke]',
        CHtml::listData($assignedData, 'name', 'description'),
        array('size'=>10,
            'multiple'=>'multiple',
            'class'=>'dropdown',
            )
    ) ?> <?= CHtml::ajaxSubmitButton('<<', array('assign', 'assign' . ucfirst($tab) => 1), array(
        'type' => 'POST',
        'update' => '#'.$tab,
        'beforeSend' => 'function(){
            $(".ui-tabs-selected a:first-child").addClass("preloader");
        }',
        'complete' => 'function(){
            $(".ui-tabs-selected a:first-child").removeClass("preloader");
        }',
    ), $assign) ?> <?= CHtml::ajaxSubmitButton('>>', array('assign', 'revoke' . ucfirst($tab) => 1), array(
        'type' => 'POST',
        'update' => '#'.$tab,
        'beforeSend' => 'function(){
            $(".ui-tabs-selected a:first-child").addClass("preloader");
        }',
        'complete' => 'function(){
            $(".ui-tabs-selected a:first-child").removeClass("preloader");
        }',
    ), $revoke) ?> <?= CHtml::activeDropDownList($itemModel,
        'name[assign]',
        CHtml::listData($revokedData, 'name', 'description'),
        array('size'=>10,
            'multiple'=>'multiple',
            'class'=>'dropdown',
            )
    ) ?>
</div>